Repository navigation
docs: salvage x402 payment skill update - #1767
Conversation
Greptile SummaryThis PR extends the
Confidence Score: 3/5Safe to merge after the seller-guide URLs are manually verified against the okx/payments repository structure. The skill instructs agents to fetch docs from four specific raw GitHub paths at runtime. Two of those paths (Go, Rust) include a The seller-guide URL table in Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Agent needs payment] --> B{Buyer or Seller?}
B -->|Buyer| C{Which chain?}
B -->|Seller| D{Language?}
C -->|Base / multi-chain| E[Option A: agentwallet-sdk MCP\nBase Sepolia → Base mainnet]
C -->|X Layer| F[Option B: okx-agent-payments-protocol\nfrom okx/onchainos-skills]
F --> G[Flows: x402 · MPP · session\ncharge · A2A charge]
F --> H[⚠️ okx-x402-payment = deprecated alias]
D -->|TypeScript| I[Fetch: okx/payments/main/typescript/SELLER.md]
D -->|Go| J[Fetch: okx/payments/main/go/x402/SELLER.md]
D -->|Rust| K[Fetch: okx/payments/main/rust/x402/SELLER.md]
D -->|Java| L[Fetch: okx/payments/main/java/SELLER.md]
D -->|Python| M[⚠️ Guide may not exist — check repo first]
E --> N[Set SpendingPolicy via orchestrator\nbefore delegating to agent]
F --> N
|
| |---------|---------------| | ||
| | TypeScript | `https://raw.githubusercontent.com/okx/payments/main/typescript/SELLER.md` | | ||
| | Go | `https://raw.githubusercontent.com/okx/payments/main/go/x402/SELLER.md` | | ||
| | Rust | `https://raw.githubusercontent.com/okx/payments/main/rust/x402/SELLER.md` | | ||
| | Java | `https://raw.githubusercontent.com/okx/payments/main/java/SELLER.md` | |
There was a problem hiding this comment.
Asymmetric raw-URL paths for seller guides
The Go and Rust entries include an /x402/ subdirectory (e.g. main/go/x402/SELLER.md) while TypeScript and Java do not (e.g. main/typescript/SELLER.md). If any of these paths are wrong, an agent following the skill will silently fetch a 404 and fall back to stale training-data examples — the exact failure mode the skill is trying to prevent. Please double-check that all four paths exist verbatim in the okx/payments repository before merging.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughDocumentation for the x402 payment execution skill has been expanded with updated metadata, rewritten guidance emphasizing policy-gated payments, new decision and network guidance sections, clarified protocol explanation, dual integration paths (agentwallet-sdk and OKX Agent Payments Protocol), and production references. Changesx402 Payment Skill Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Salvages the useful part of closed community PR #1346 into the existing
agent-payment-x402skill.This does not apply #1346 verbatim. The stale PR pointed agents at
okx-x402-payment, but the currentokx/onchainos-skillssurface marks that as a deprecated compatibility alias and routes new work throughokx-agent-payments-protocol.What changed
agentwallet-sdkMCP path for Base / multi-chain agent payments.Source / verification
okx/paymentsrepo has TypeScript, Go, Rust, and Java seller guides.okx/onchainos-skillsusesokx-agent-payments-protocolas the current dispatcher and keepsokx-x402-paymentas a deprecated alias.Test plan
node scripts/ci/validate-skills.js skills/agent-payment-x402/SKILL.mdnode scripts/ci/validate-no-personal-paths.jsgit diff --checknpm test(2285 passed, 0 failed)Summary by cubic
Updates the
agent-payment-x402skill docs with a buyer/seller decision tree, current X Layer guidance viaokx-agent-payments-protocol, and clearer safety boundaries, while keeping theagentwallet-sdkpath for Base/multi‑chain.agentwallet-sdkfor Base/multi-chain andokx-agent-payments-protocolfor X Layer;okx-x402-paymentis noted as deprecated.Written for commit 29f06c7. Summary will update on new commits.
Summary by CodeRabbit